import {createRouter,createWebHistory,RouteRecordRaw} from 'vue-router'


const routes:Array<RouteRecordRaw>=[
    {
        path:'/',
        name:'index',
        component:()=>import('../components/HelloWorld.vue')
    },
    {
        path:'/Login',
        name:'Login',
        component:()=>import('../views/Login.vue')
    },
    {
        path:'/RoomAdd',
        name:'RoomAdd',
        component:()=>import('../views/RoomAdd.vue')
    },
    {
        path:'/RoomShow',
        name:'RoomShow',
        component:()=>import('../views/RoomShow.vue')
    }
]


const router=createRouter({
    history:createWebHistory(),
    routes
})


export default router